<template>
  <div class="shop">
    <img :src="item.imgUrl" class="shop__img" />
    <div class="shop__content" :class="{ showBorderClass: showBorder }">
      <div class="shop__content__title">{{ item.name }}</div>
      <div class="shop__content__tags">
        <span class="shop__content__tag">月售{{ item.sales }}+</span>
        <span class="shop__content__tag">起送￥{{ item.expressLimit }}</span>
        <span class="shop__content__tag"
          >基础运费￥{{ item.expressPrice }}</span
        >
      </div>
      <p class="shop__content__highlight">{{ item.slogan }}</p>
    </div>
  </div>
</template>

<script>
export default {
  name: "ShopInfo",
  props: ["item", "showBorder"],
};
</script>
<style lang="scss" scoped>
@import "../style/viriables";
.shop {
  display: flex;
  .shop__img {
    width: 0.56rem;
    height: 0.56rem;
    margin-right: 0.16rem;
    margin-top: 0.12rem;
  }
  .shop__content {
    flex: 1;
    padding: 0.12rem 0;
    .showBorderClass {
      border-bottom: 0.01rem solid $content-bgcolor;
    }
    &__title {
      line-height: 0.22rem;
      font-size: 0.16rem;
      color: $content-fontcolor;
    }
    &__tags {
      margin: 0.08rem 0 0 0;
      line-height: 0.18rem;
      font-size: 0.12rem;
      color: $content-fontcolor;
      .shop__content__tag {
        margin-right: 0.2rem;
      }
    }
    &__highlight {
      margin: 0.08rem 0 0 0;
      line-height: 0.18rem;
      font-size: 0.13rem;
      color: #e93b3b;
    }
  }
}
</style>
